Skip to content

Conversation

@yaniccd
Copy link
Collaborator

@yaniccd yaniccd commented Dec 12, 2025

Added examples and references to the docstrings. Slight modification to the docstring format.

@codecov
Copy link

codecov bot commented Dec 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
haarpy/circular_ensembles.py 100.00% <ø> (ø)
haarpy/orthogonal.py 100.00% <100.00%> (ø)
haarpy/partition.py 100.00% <ø> (ø)
haarpy/permutation.py 100.00% <100.00%> (ø)
haarpy/symmetric.py 100.00% <ø> (ø)
haarpy/symplectic.py 100.00% <100.00%> (ø)
haarpy/tests/test_circular_ensembles.py 100.00% <100.00%> (ø)
haarpy/tests/test_permutation.py 100.00% <100.00%> (ø)
haarpy/unitary.py 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.


Return:
tuple[tuple]: Greatest lower bound
The meet operation symbol is ∧, for instance
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to add a reference?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have put the reference on top of every .py files, right below the module description. I saw it done that way in a sympy file I believe. This notation comes from [1] for instance. I personally like to put the reference on top to avoid repeating the same ref in every function. The downside is that it is not explicit what reference correspond to which function. Most reference are related to every function of the module. Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think is motly ok. However, one issue with this that often you want to see the docstring while typing code. I guess more often than not, what you want are examples, not references so maybe it is OK.

raise TypeError


# pylint: disable=invalid-name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kind of like the wikipedia references to all the group theory concepts ¯_(ツ)_/¯

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it as well. I am not sure how to format it though to avoid the clash between proper reference and Wikipedia reference. Thoughts?

Copy link
Contributor

@nquesada nquesada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found some typos and a potential incomplete example.
Also, personally, I prefer to write do not and does not as opposed to don't and doesn't, but I won't try to impose that here.

yaniccd and others added 3 commits December 18, 2025 09:42
Co-authored-by: Nicolás Quesada <991946+nquesada@users.noreply.github.com>
Co-authored-by: Nicolás Quesada <991946+nquesada@users.noreply.github.com>
Co-authored-by: Nicolás Quesada <991946+nquesada@users.noreply.github.com>
yaniccd and others added 4 commits December 18, 2025 09:43
Co-authored-by: Nicolás Quesada <991946+nquesada@users.noreply.github.com>
Co-authored-by: Nicolás Quesada <991946+nquesada@users.noreply.github.com>
Co-authored-by: Nicolás Quesada <991946+nquesada@users.noreply.github.com>
Co-authored-by: Nicolás Quesada <991946+nquesada@users.noreply.github.com>
@yaniccd yaniccd merged commit 67a58ae into master Dec 22, 2025
2 checks passed
@yaniccd yaniccd deleted the docstring_examples branch December 22, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants